﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.EntityModel;
using YasharEl.Infrastructure.Core.Personification;

namespace YasharEl.Infrastructure.TaskEngine.EntityModel
{
    public class TaskParticipantEntity : Entity, ITaskParticipant
    {
        #region AbstractEntity<long> Overrides

        public override long Id
        {
            get
            {
                return UserId;
            }
            protected set
            {
                UserId = value;
            }
        }

        #endregion

        #region ITaskParticipant Implementations

        public virtual long UserId
        {
            get;
            private set;
        }

        public virtual IsraelIdentityNumber UserIdentityId
        {
            get;
            private set;
        }

        public virtual Name UserName
        {
            get;
            private set;
        }

        public virtual string Email
        {
            get;
            private set;
        }

        public virtual IList<ITask> CurrentlyAssignedTasks
        {
            get;
            private set;
        }

        #endregion
    }
}
